//
//  Request.h
//  DesignPattern
//
//  Created by jun on 2021/4/16.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^ClientCompelete)(BOOL success,NSDictionary * _Nonnull dic,NSString* msg, NSError* _Nonnull error);

@interface Request : NSObject

+(NSURLRequest *)netGetURL:(NSString *)url params:(NSDictionary *)params compelete:(ClientCompelete)compelete;
+(NSURLRequest *)netPostURL:(NSString *)url params:(NSDictionary *)params bodyParams:(NSDictionary *)params compelete:(ClientCompelete)compelete;
@end

NS_ASSUME_NONNULL_END
